package com.bachongLightNovel.system.mapper;

import com.bachongLightNovel.model.pojo.system.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SystemPermissionMapper {

    //查询所有的数据
    @Select("select * from permission")
    List<Permission> selectAll();

    //根据用户id查询相应的权限
    List<Permission> selectByUserId(Long userId);


}
